cmake_minimum_required(VERSION 3.24)
project(cpp_standard_library)

set(CMAKE_CXX_STANDARD 14)

# 包含头文件路径
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
file(GLOB SRC_LIST ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
file(GLOB SRC_LIST_MAIN ${CMAKE_CURRENT_SOURCE_DIR}/cmd/*.cpp)

# message(${SRC_LIST})
# message(${SRC_LIST_MAIN})

add_executable(app
        ${SRC_LIST_MAIN} ${SRC_LIST})


# 可选：指定输出目录
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/build)
